
$(function(){

    // 首页广告图轮播
    var swiper = new Swiper('.swiper-container', {
      spaceBetween: 30,
      centeredSlides: true,
      autoplay: {
        delay: 2500,
        disableOnInteraction: false,
      },
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      }
    });

    $(".register-pop").click(function(){
      layer.open({
        type: 2,
        title: '注册',
        shadeClose: true,
        shade: 0.8,
        area: ['100%', '80%'],
        content: $(this).attr("href")
      }); 

      return false;
    });

    $(".login-pop").click(function(){
      layer.open({
        type: 2,
        title: '登录',
        shadeClose: true,
        shade: 0.8,
        area: ['100%', '80%'],
        content: $(this).attr("href")
      }); 

      return false;
    });
});

